package com.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chen.domain.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper extends BaseMapper<SysRole> {

    Page<SysRole> selectPageList(@Param("page") Page<SysRole> page,
                                 @Param("name") String name);

    List<SysRole> selectUserRole(@Param("id") String id);

    void deleteByMenuIds(@Param("menuIds") List<Long> menuIds);
}